﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002C3 RID: 707
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueUpdateAllowedSelectCellScNotify : IMessage<ChessRogueUpdateAllowedSelectCellScNotify>, IMessage, IEquatable<ChessRogueUpdateAllowedSelectCellScNotify>, IDeepCloneable<ChessRogueUpdateAllowedSelectCellScNotify>, IBufferMessage
	{
		// Token: 0x17000939 RID: 2361
		// (get) Token: 0x06001FC0 RID: 8128 RVA: 0x0005A753 File Offset: 0x00058953
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueUpdateAllowedSelectCellScNotify> Parser
		{
			get
			{
				return ChessRogueUpdateAllowedSelectCellScNotify._parser;
			}
		}

		// Token: 0x1700093A RID: 2362
		// (get) Token: 0x06001FC1 RID: 8129 RVA: 0x0005A75A File Offset: 0x0005895A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueUpdateAllowedSelectCellScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700093B RID: 2363
		// (get) Token: 0x06001FC2 RID: 8130 RVA: 0x0005A76C File Offset: 0x0005896C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueUpdateAllowedSelectCellScNotify.Descriptor;
			}
		}

		// Token: 0x06001FC3 RID: 8131 RVA: 0x0005A773 File Offset: 0x00058973
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateAllowedSelectCellScNotify()
		{
		}

		// Token: 0x06001FC4 RID: 8132 RVA: 0x0005A786 File Offset: 0x00058986
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateAllowedSelectCellScNotify(ChessRogueUpdateAllowedSelectCellScNotify other) : this()
		{
			this.boardId_ = other.boardId_;
			this.allowSelectCellIdList_ = other.allowSelectCellIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001FC5 RID: 8133 RVA: 0x0005A7BC File Offset: 0x000589BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateAllowedSelectCellScNotify Clone()
		{
			return new ChessRogueUpdateAllowedSelectCellScNotify(this);
		}

		// Token: 0x1700093C RID: 2364
		// (get) Token: 0x06001FC6 RID: 8134 RVA: 0x0005A7C4 File Offset: 0x000589C4
		// (set) Token: 0x06001FC7 RID: 8135 RVA: 0x0005A7CC File Offset: 0x000589CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BoardId
		{
			get
			{
				return this.boardId_;
			}
			set
			{
				this.boardId_ = value;
			}
		}

		// Token: 0x1700093D RID: 2365
		// (get) Token: 0x06001FC8 RID: 8136 RVA: 0x0005A7D5 File Offset: 0x000589D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AllowSelectCellIdList
		{
			get
			{
				return this.allowSelectCellIdList_;
			}
		}

		// Token: 0x06001FC9 RID: 8137 RVA: 0x0005A7DD File Offset: 0x000589DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueUpdateAllowedSelectCellScNotify);
		}

		// Token: 0x06001FCA RID: 8138 RVA: 0x0005A7EC File Offset: 0x000589EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueUpdateAllowedSelectCellScNotify other)
		{
			return other != null && (other == this || (this.BoardId == other.BoardId && this.allowSelectCellIdList_.Equals(other.allowSelectCellIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001FCB RID: 8139 RVA: 0x0005A83C File Offset: 0x00058A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BoardId != 0U)
			{
				num ^= this.BoardId.GetHashCode();
			}
			num ^= this.allowSelectCellIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001FCC RID: 8140 RVA: 0x0005A889 File Offset: 0x00058A89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001FCD RID: 8141 RVA: 0x0005A891 File Offset: 0x00058A91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001FCE RID: 8142 RVA: 0x0005A89C File Offset: 0x00058A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BoardId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.BoardId);
			}
			this.allowSelectCellIdList_.WriteTo(ref output, ChessRogueUpdateAllowedSelectCellScNotify._repeated_allowSelectCellIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001FCF RID: 8143 RVA: 0x0005A8EC File Offset: 0x00058AEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BoardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BoardId);
			}
			num += this.allowSelectCellIdList_.CalculateSize(ChessRogueUpdateAllowedSelectCellScNotify._repeated_allowSelectCellIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001FD0 RID: 8144 RVA: 0x0005A940 File Offset: 0x00058B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueUpdateAllowedSelectCellScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BoardId != 0U)
			{
				this.BoardId = other.BoardId;
			}
			this.allowSelectCellIdList_.Add(other.allowSelectCellIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001FD1 RID: 8145 RVA: 0x0005A98D File Offset: 0x00058B8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001FD2 RID: 8146 RVA: 0x0005A998 File Offset: 0x00058B98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U && num != 50U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.allowSelectCellIdList_.AddEntriesFrom(ref input, ChessRogueUpdateAllowedSelectCellScNotify._repeated_allowSelectCellIdList_codec);
					}
				}
				else
				{
					this.BoardId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000D11 RID: 3345
		private static readonly MessageParser<ChessRogueUpdateAllowedSelectCellScNotify> _parser = new MessageParser<ChessRogueUpdateAllowedSelectCellScNotify>(() => new ChessRogueUpdateAllowedSelectCellScNotify());

		// Token: 0x04000D12 RID: 3346
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D13 RID: 3347
		public const int BoardIdFieldNumber = 2;

		// Token: 0x04000D14 RID: 3348
		private uint boardId_;

		// Token: 0x04000D15 RID: 3349
		public const int AllowSelectCellIdListFieldNumber = 6;

		// Token: 0x04000D16 RID: 3350
		private static readonly FieldCodec<uint> _repeated_allowSelectCellIdList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x04000D17 RID: 3351
		private readonly RepeatedField<uint> allowSelectCellIdList_ = new RepeatedField<uint>();
	}
}
